#!/bin/bash
#功能：
#	基于debian6 32位的vagex一键挂机脚本
#时间：
#	2012/10/21
#作者：
#	风林部落www.flintribe.com
apt-get remove portmap* httpd* samba* nscd* sendmail*  vnc4server firefox* -y  
apt-get update
apt-get -q -y --force-yes install expect vnc4server xterm jwm mercurial libasound2-dev libcurl4-openssl-dev libnotify-dev libxt-dev libiw-dev mesa-common-dev autoconf2.13 yasm bzip2 libidl-dev zip iceweasel
wget http://flin.googlecode.com/svn/trunk/vagex/install_flash_player_10_linux.tar.gz
tar xvzf install_flash_player_10_linux.tar.gz
mkdir -p ~/.mozilla/plugins/
cp libflashplayer.so  ~/.mozilla/plugins/
cp libflashplayer.so  /usr/lib/iceweasel/
wget http://flin.googlecode.com/svn/trunk/vagex/vncserver
cp vncserver /etc/init.d/
chmod +x /etc/init.d/vncserver
update-rc.d vncserver defaults
cd /root
wget http://flin.googlecode.com/svn/trunk/vagex_firefox_add_on-1.1.8-fx.xpi
wget http://flin.googlecode.com/svn/trunk/youtube_video_quality_manager-1.2-fx.xpi
vncserver
echo 'startjwm &'>>/root/.vnc/xstartup
echo 'firefox --display=:1'>>/root/.vnc/xstartup
